﻿@using BonjourQuotation.UI.Models.ReportModel
@model FrmGroupGuideReportViewModel
@if(Model.MenuReportGroupGuideView)
{ 
{
    @Scripts.Render("~/Scripts/UIScript/Report.js")
}
<div class="container">
    <div class="FormsDiv">
        @using (@Html.BeginForm("GroupGuideReport", "Report", FormMethod.Post, new { id = "GroupGuideReportForm" }))
        {
            <div class="SearchReportTitleDiv">
                <h3>Group-Guide Report</h3>
            </div>
            <div class="SearchReportDiv">
                <div class="pull-right" style="margin-bottom:15px;">
                    <div class="row form-row">
                        <div class=" col-lg-12">
                            <div class="input-group">
                                <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">Date Range:</span>
                            </div>
                        </div>
                    </div>
                    <div class="row form-row">
                        <div class=" col-lg-12">
                            <div class="input-group">
                                <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Lower)</span>
                                @Html.TextBoxFor(model => model.Lower, new { @class = "table_inputs_SmallPadding2 inpputgr form-control SearchDeteilsDataCalendarFrom TextBox Required Date", @style = "cursor:pointer", @placeholder = "dd/mmm/yyyy" })
                            </div>
                        </div>
                    </div>
                    <div class="row form-row">
                        <div class=" col-lg-12">
                            <div class="input-group">
                                <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Upper)</span>
                                @Html.TextBoxFor(model => model.Upper, new { @class = "table_inputs_SmallPadding2 inpputgr form-control SearchDeteilsDataCalendarTo TextBox Required Date", @style = "cursor:pointer", @placeholder = "dd/mmm/yyyy" })
                            </div>
                        </div>
                    </div>
                    <div class="row form-row">
                        <div class=" col-lg-6" style="margin-left:25% !important;">
                            <div class="input-group">
                                <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.IsGir)</span>
                                @Html.DropDownListFor(model => Model.SelectedIsGir, new SelectList(Model.IsGir, "Value", "Text"), "Select", new { @class = "table_inputs_SmallPadding2 inpputgr form-control DropDown" })
                            </div>
                        </div>
                    </div>
                    <div class="ReportSearchCancelBtnsDiv">
                        <button class="btn14 btn50" type="button" id="CancelButton">Cancel</button>
                        @if(Model.MenuReportGroupGuideEdit)
                        { 
                            <button class="btn14 btn50" type="button" id="GroupGuideSumBtn">Search</button>
                            @Html.LabelFor(model => Model.RunExcel)
                            @Html.CheckBoxFor(model => Model.RunExcel, new { @class = "table_inputs_checkbox" })
                        }
                        else
                        { 
                            <button class="btn14 btn50" type="button" disabled="disabled" id="GroupGuideSumBtn">Search</button>
                        }
                        <div id="LoadingDiv" style="display:none;">
                            <img alt="loading" src="../../Content/Images/AjaxLoader.gif" />
                        </div>
                    </div>
                </div>
            </div>
        }
    </div>
</div>
}
else
{
    <div class="container">
        <div class="FormsDiv" id="FormsDiv">
            <h1>You Have Not permission for this page</h1>
        </div>
    </div>
} 



